.box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  letter-spacing: 1rem;
  background-color: #000000f0;
}
.box span:nth-child(1) {
  animation: leap 1s 0.3s infinite linear alternate-reverse;
  display: inline-block;
}
.box span:nth-child(2) {
  animation: leap 1s 0.6s infinite linear alternate-reverse;
  display: inline-block;
}
.box span:nth-child(3) {
  animation: leap 1s 0.9s infinite linear alternate-reverse;
  display: inline-block;
}
.box span:nth-child(4) {
  animation: leap 1s 1.2s infinite linear alternate-reverse;
  display: inline-block;
}
.box span:nth-child(5) {
  animation: leap 1s 1.5s infinite linear alternate-reverse;
  display: inline-block;
}
.box span:nth-child(6) {
  animation: leap 1s 1.8s infinite linear alternate-reverse;
  display: inline-block;
}
.box span:nth-child(7) {
  animation: leap 1s 2.1s infinite linear alternate-reverse;
  display: inline-block;
}
.box span:nth-child(8) {
  animation: leap 1s 2.4s infinite linear alternate-reverse;
  display: inline-block;
}
.box span:nth-child(9) {
  animation: leap 1s 2.7s infinite linear alternate-reverse;
  display: inline-block;
}
.box span:nth-child(10) {
  animation: leap 1s 3s infinite linear alternate-reverse;
  display: inline-block;
}
.box span:nth-child(11) {
  animation: leap 1s 3.3s infinite linear alternate-reverse;
  display: inline-block;
}
@keyframes leap {
  0% {
    transform: translateY(-30px);
    color: red;
  }
  100% {
    transform: translateY(0px);
    color: blue;
  }
}
